<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich" xml:lang="en">
<head>
<title>问题查看</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
	content="A short description of this page." />
<link href="#{facesContext.externalContext.requestContextPath}/css/public.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="#{facesContext.externalContext.requestContextPath}/css/main.css" rel="stylesheet" type="text/css"
	media="screen" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<!-- rich:message style-->
<style type="text/css">
	.rich-message-label{
		color:red;
	}
</style>
</head>
<body style="background-color: #ffffff">

<a4j:form>
	<div id="right">
	<div id="msgid" class="error pt10p bcf c0 tal" style="display: ">
	<a4j:outputPanel id="msgPanel">
		<center><h:outputText styleClass="cff"
			value="#{SubjectBB.msg}" /></center>
	</a4j:outputPanel></div>
	<div class="tablelist">
	<table width="100%" border="1" cellpadding="0" cellspacing="0"
		bordercolor="#c3c3c3" style="border-collapse: collapse">
		<tr>
			<td>OFFICE<h:selectOneMenu disabled="true"
				class="style_input" value="#{SubjectBB.questionsbank.office_code}">
				<f:selectItems value="#{otherParamBB.selectItems_officeInfId}" />
			</h:selectOneMenu></td>
			<td>技能组<h:selectOneMenu disabled="true"
				class="style_input" value="#{SubjectBB.questionsbank.tp_userkind}">
				<f:selectItems value="#{paramBB.selectItems_param}" />
			</h:selectOneMenu></td>
			<td>有效标识<h:selectOneMenu disabled="true"
				class="style_input" value="#{SubjectBB.questionsbank.tp_del_flag}">
				<f:selectItems value="#{paramBB.selectItem['tp_del_flag']}" />
			</h:selectOneMenu></td>
		</tr>
		<tr>
			
			<td class="yellow">题目类型 <h:selectOneMenu class="style_input"
				onchange="submit(this);" valueChangeListener="#{SubjectBB.subjectChanged}"  disabled="true"
				value="#{SubjectBB.questionsbank.tp_question_type}" immediate="true">
				<f:selectItem itemValue="null" itemLabel="--请选择题类型--" />
				<f:selectItems value="#{paramBB.selectItem['tp_question_type']}" />
			</h:selectOneMenu></td>
			<td>题目类别<h:selectOneMenu disabled="true"
							class="style_input" value="#{SubjectBB.questionsbank.tp_classid_value}">
							<f:selectItem itemValue="0" itemLabel="--请选择题目类别--" />
							<f:selectItems value="#{otherParamBB.selectItems_questionClasss}" />
						</h:selectOneMenu>
			</td>
			<td>难易程度<h:selectOneMenu disabled="true"
				class="style_input" value="#{SubjectBB.questionsbank.tp_difficulty}">
				<f:selectItems value="#{paramBB.selectItem['tp_difficulty']}" />
			</h:selectOneMenu></td>
			
		</tr>
		
		<tr>
			<td class="yellow">分 值 <label><h:inputText disabled="true"
				class="style_input" value="#{SubjectBB.questionsbank.tp_point}"  /></label></td>
			<td>操作人<h:inputText
				class="style_input" disabled="true" value="#{SubjectBB.questionsbank.op}" /></td>
			<td>操作时间<rich:calendar value="#{SubjectBB.questionsbank.op_date}" datePattern="yyyy-MM-dd" disabled="true" /></td>
		</tr>
	</table>
	<table >
		<tr>
			<td><span class="cff">*</span>题 目 </td><td>
				<h:inputTextarea id="tp_question" readonly="true" value="#{SubjectBB.questionsbank.tp_question}" class="style_textarea">
				</h:inputTextarea></td>
		</tr>
		
		<tr>
			<td ><span class="cff">*</span> 答案描述 </td>
			<td>
			<h:inputTextarea id="tp_answer" readonly="true" value="#{SubjectBB.questionsbank.tp_answer}"
				class="style_textarea" ></h:inputTextarea></td>
		</tr>
		<tr>
			<td>备注 </td><td>
			<h:inputTextarea id="tp_e_remark" readonly="true" value="#{SubjectBB.questionsbank.tp_e_remark}"
				class="style_textarea" ></h:inputTextarea> </td>
		</tr>
	</table>

	<div id="subArea" style="display: #{SubjectBB.tags>1? 'block':'none'}">
	<div class="biaoqian" style="height: 3px; width: 100%">
	<center>选择题备选答案</center>
	</div>
	<rich:dataTable width="100%" id="tableID" border="0"
		value="#{SubjectBB.answerlists}" var="table">
		<a4j:keepAlive beanName="SubjectBB" />
		<rich:columnGroup>
			<rich:column>
				<h:selectBooleanCheckbox value="#{table.select}" disabled="true" style=" width:100% " />
			</rich:column>
			<rich:column style=" width:5% ">
				<h:inputText value="#{table.answercode}" style=" width:50% " disabled="true"/>
			</rich:column>
			<rich:column style=" width:88% ">
				<h:inputText value="#{table.answerdesc}" style=" width:100% " disabled="true"/>
			</rich:column>
		</rich:columnGroup>
	</rich:dataTable></div>
	<div class="listbut">
		<h:commandButton styleClass="buttonbg" value="返回" action="back" immediate="true" /></div>
	</div>
	</div>
</a4j:form>
</body>
</html>

